JavaScript

{dialog.object}refreshChart Method

Syntax

{dialog.object}.refreshChart(UXXChartId [, options]);

Arguments

UXChartId

The Id of the chart control to refresh.

options

Optional. A JSON object that can be used to specify the size (in pixels) of the chart. This allows you to change the size of the chart when refreshed. Available size options are:

Option
Description
width

Defines the chart's width.

height

Defines the chart's height.

Description

Refresh a chart control.

Refreshing a Chart Control

To simply refresh a chart, call the {dialog.object}.refreshChart method as follows:

var chartId = 'chart1';
{dialog.object}.refreshChart(chartId);

Change the Chart's Width

To change the chart's width when calling the {dialog.object}.refreshChart method, create a object with the property width. The width property is a numeric value that defines the chart's width in pixels:

var chartId = 'chart1';

var options = {};
options.width = 400;

{dialog.object}.refreshChart(chartId, options);

Change the Chart's Height

To change the chart's width when calling the {dialog.object}.refreshChart method, create a object with the property height. The height property is a numeric value that defines the chart's height in pixels:

var chartId = 'chart1';

var options = {};
options.height = 400;

{dialog.object}.refreshChart(chartId, options);

Change the Chart's Width and Height

You can change both the chart's width and height by defining the new width and height in the optional options. For example:

var chartId = 'chart1';

var options = {};
options.height = 400;
options.width = 400;

{dialog.object}.refreshChart(chartId, options);